package com.edu.hre.struts.form.recruit;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;
import com.edu.hre.db.pojo.HreDistrict;
import com.edu.hre.db.pojo.HreNationality;
import com.edu.hre.db.pojo.HreProvince;

public class CandidateUpdateForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7060332950972556873L;
	
	private int id;
	private String firstName;
	private String middleName;
	private String lastName;
    private String email = "";
    private String contactNumber = "";
    private String idCardNumber = "";
    private Date idCardDateIssued;
    private String idCardLocationIssued = "";
    private int gender = 0;
    private String maritalStatus = "";
    private int nationality = 0;
    private Date dateOfBirth;
    private FormFile image = null;
    private FormFile cvFile = null;

    private String addressStreet;
    private String districtCode;
    private String provinceCode;
    
    private List<LabelValueBean> allMaritalStatuses = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allGenders = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allNationalities = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allDistricts = new ArrayList<LabelValueBean>();
    private List<LabelValueBean> allProvinces = new ArrayList<LabelValueBean>();

    private boolean isAddNew = true;
    private boolean success = false;
    private String message = "";
    
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getMiddleName() {
		return middleName;
	}
	public void setMiddleName(String middleName) {
		this.middleName = middleName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getContactNumber() {
		return contactNumber;
	}
	public void setContactNumber(String contactNumber) {
		this.contactNumber = contactNumber;
	}
	public String getIdCardNumber() {
		return idCardNumber;
	}
	public void setIdCardNumber(String idCardNumber) {
		this.idCardNumber = idCardNumber;
	}
	public String getIdCardDateIssued() {
		return CommonUtils.dateToString(idCardDateIssued);
	}
	public void setIdCardDateIssued(String idCardDateIssued) {
		this.idCardDateIssued = CommonUtils.stringToDate(idCardDateIssued);
	}
	public String getIdCardLocationIssued() {
		return idCardLocationIssued;
	}
	public void setIdCardLocationIssued(String idCardLocationIssued) {
		this.idCardLocationIssued = idCardLocationIssued;
	}
	public int getGender() {
		return gender;
	}
	public void setGender(int gender) {
		this.gender = gender;
	}
	public String getMaritalStatus() {
		return maritalStatus;
	}
	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}
	public int getNationality() {
		return nationality;
	}
	public void setNationality(int nationality) {
		this.nationality = nationality;
	}
	public String getDateOfBirth() {
		return CommonUtils.dateToString(dateOfBirth);
	}
	public void setDateOfBirth(String dateOfBirth) {
		this.dateOfBirth = CommonUtils.stringToDate(dateOfBirth);
	}
	public FormFile getImage() {
		return image;
	}
	public void setImage(FormFile image) {
		this.image = image;
	}
	public String getAddressStreet() {
		return addressStreet;
	}
	public void setAddressStreet(String addressStreet) {
		this.addressStreet = addressStreet;
	}
	public String getDistrictCode() {
		return districtCode;
	}
	public void setDistrictCode(String districtCode) {
		this.districtCode = districtCode;
	}
	public String getProvinceCode() {
		return provinceCode;
	}
	public void setProvinceCode(String provinceCode) {
		this.provinceCode = provinceCode;
	}
	public List<LabelValueBean> getAllMaritalStatuses() {
		return allMaritalStatuses;
	}
	public void setAllMaritalStatuses(List<LabelValueBean> allMaritalStatuses) {
		this.allMaritalStatuses = allMaritalStatuses;
	}
	public List<LabelValueBean> getAllGenders() {
		return allGenders;
	}
	public void setAllGenders(List<LabelValueBean> allGenders) {
		this.allGenders = allGenders;
	}
	public List<LabelValueBean> getAllNationalities() {
		return allNationalities;
	}
	public void setAllNationalities(List<LabelValueBean> allNationalities) {
		this.allNationalities = allNationalities;
	}
	public List<LabelValueBean> getAllDistricts() {
		return allDistricts;
	}
	public void setAllDistricts(List<LabelValueBean> allDistricts) {
		this.allDistricts = allDistricts;
	}
	public List<LabelValueBean> getAllProvinces() {
		return allProvinces;
	}
	public void setAllProvinces(List<LabelValueBean> allProvinces) {
		this.allProvinces = allProvinces;
	}
	public boolean isAddNew() {
		return isAddNew;
	}
	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	public boolean getIsAddNew() {
		return isAddNew;
	}
	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public FormFile getCvFile() {
		return cvFile;
	}
	public void setCvFile(FormFile cvFile) {
		this.cvFile = cvFile;
	}
	public boolean isSuccess() {
		return success;
	}
	public boolean getSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
}
